package com.starsoft.smdc.bean;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * SmdcMarketDaily entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "smdc_market_daily")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "ormCache")
public class SmdcMarketDaily implements java.io.Serializable {

	// Fields

	private SmdcMarketDailyId id;
	private Boolean isOpen;
	private Double preClosePrice;
	private Double openPrice;
	private Double closePrice;
	private Double highPrice;
	private Double lowPrice;
	private Double priceChange;
	private Double percent;
	private Double turnoverValue;
	private Double turnoverVol;
	private Double turnoverRate;
	private Double buy1;
	private Double buyVol1;
	private Double sell1;
	private Double sellVol1;
	private Double adjFactor;
	private Double shareFactor;
	private Double secNav;
	private Double adjutNav;
	private Double accumNav;
	private Double pe;
	private Double peWeighted;
	private Double pb;
	private Double pbWeighted;
	private Double roe;
	private Double roeWeighted;
	private Double divi;
	private Double diviWeighted;

	// Constructors

	/** default constructor */
	public SmdcMarketDaily() {
	}

	/** minimal constructor */
	public SmdcMarketDaily(SmdcMarketDailyId id) {
		this.id = id;
	}

	/** full constructor */
	public SmdcMarketDaily(SmdcMarketDailyId id, Boolean isOpen, Double preClosePrice, Double openPrice,
			Double closePrice, Double highPrice, Double lowPrice, Double priceChange, Double percent,
			Double turnoverValue, Double turnoverVol, Double turnoverRate, Double buy1, Double buyVol1, Double sell1,
			Double sellVol1, Double adjFactor, Double shareFactor, Double secNav, Double adjutNav, Double accumNav,
			Double pe, Double peWeighted, Double pb, Double pbWeighted, Double roe, Double roeWeighted, Double divi,
			Double diviWeighted) {
		this.id = id;
		this.isOpen = isOpen;
		this.preClosePrice = preClosePrice;
		this.openPrice = openPrice;
		this.closePrice = closePrice;
		this.highPrice = highPrice;
		this.lowPrice = lowPrice;
		this.priceChange = priceChange;
		this.percent = percent;
		this.turnoverValue = turnoverValue;
		this.turnoverVol = turnoverVol;
		this.turnoverRate = turnoverRate;
		this.buy1 = buy1;
		this.buyVol1 = buyVol1;
		this.sell1 = sell1;
		this.sellVol1 = sellVol1;
		this.adjFactor = adjFactor;
		this.shareFactor = shareFactor;
		this.secNav = secNav;
		this.adjutNav = adjutNav;
		this.accumNav = accumNav;
		this.pe = pe;
		this.peWeighted = peWeighted;
		this.pb = pb;
		this.pbWeighted = pbWeighted;
		this.roe = roe;
		this.roeWeighted = roeWeighted;
		this.divi = divi;
		this.diviWeighted = diviWeighted;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "secId", column = @Column(name = "sec_id", nullable = false, length = 10)),
			@AttributeOverride(name = "tradeDate", column = @Column(name = "trade_date", nullable = false, length = 10)) })
	public SmdcMarketDailyId getId() {
		return this.id;
	}

	public void setId(SmdcMarketDailyId id) {
		this.id = id;
	}

	@Column(name = "is_open")
	public Boolean getIsOpen() {
		return this.isOpen;
	}

	public void setIsOpen(Boolean isOpen) {
		this.isOpen = isOpen;
	}

	@Column(name = "pre_close_price", precision = 22, scale = 0)
	public Double getPreClosePrice() {
		return this.preClosePrice;
	}

	public void setPreClosePrice(Double preClosePrice) {
		this.preClosePrice = preClosePrice;
	}

	@Column(name = "open_price", precision = 22, scale = 0)
	public Double getOpenPrice() {
		return this.openPrice;
	}

	public void setOpenPrice(Double openPrice) {
		this.openPrice = openPrice;
	}

	@Column(name = "close_price", precision = 22, scale = 0)
	public Double getClosePrice() {
		return this.closePrice;
	}

	public void setClosePrice(Double closePrice) {
		this.closePrice = closePrice;
	}

	@Column(name = "high_price", precision = 22, scale = 0)
	public Double getHighPrice() {
		return this.highPrice;
	}

	public void setHighPrice(Double highPrice) {
		this.highPrice = highPrice;
	}

	@Column(name = "low_price", precision = 22, scale = 0)
	public Double getLowPrice() {
		return this.lowPrice;
	}

	public void setLowPrice(Double lowPrice) {
		this.lowPrice = lowPrice;
	}

	@Column(name = "price_change", precision = 22, scale = 0)
	public Double getPriceChange() {
		return this.priceChange;
	}

	public void setPriceChange(Double priceChange) {
		this.priceChange = priceChange;
	}

	@Column(name = "percent", precision = 22, scale = 0)
	public Double getPercent() {
		return this.percent;
	}

	public void setPercent(Double percent) {
		this.percent = percent;
	}

	@Column(name = "turnoverValue", precision = 22, scale = 0)
	public Double getTurnoverValue() {
		return this.turnoverValue;
	}

	public void setTurnoverValue(Double turnoverValue) {
		this.turnoverValue = turnoverValue;
	}

	@Column(name = "turnoverVol", precision = 22, scale = 0)
	public Double getTurnoverVol() {
		return this.turnoverVol;
	}

	public void setTurnoverVol(Double turnoverVol) {
		this.turnoverVol = turnoverVol;
	}

	@Column(name = "turnoverRate", precision = 22, scale = 0)
	public Double getTurnoverRate() {
		return this.turnoverRate;
	}

	public void setTurnoverRate(Double turnoverRate) {
		this.turnoverRate = turnoverRate;
	}

	@Column(name = "buy1", precision = 22, scale = 0)
	public Double getBuy1() {
		return this.buy1;
	}

	public void setBuy1(Double buy1) {
		this.buy1 = buy1;
	}

	@Column(name = "buyVol1", precision = 22, scale = 0)
	public Double getBuyVol1() {
		return this.buyVol1;
	}

	public void setBuyVol1(Double buyVol1) {
		this.buyVol1 = buyVol1;
	}

	@Column(name = "sell1", precision = 22, scale = 0)
	public Double getSell1() {
		return this.sell1;
	}

	public void setSell1(Double sell1) {
		this.sell1 = sell1;
	}

	@Column(name = "sellVol1", precision = 22, scale = 0)
	public Double getSellVol1() {
		return this.sellVol1;
	}

	public void setSellVol1(Double sellVol1) {
		this.sellVol1 = sellVol1;
	}

	@Column(name = "adj_Factor", precision = 22, scale = 0)
	public Double getAdjFactor() {
		return this.adjFactor;
	}

	public void setAdjFactor(Double adjFactor) {
		this.adjFactor = adjFactor;
	}

	@Column(name = "shareFactor", precision = 22, scale = 0)
	public Double getShareFactor() {
		return this.shareFactor;
	}

	public void setShareFactor(Double shareFactor) {
		this.shareFactor = shareFactor;
	}

	@Column(name = "sec_NAV", precision = 22, scale = 0)
	public Double getSecNav() {
		return this.secNav;
	}

	public void setSecNav(Double secNav) {
		this.secNav = secNav;
	}

	@Column(name = "adjut_NAV", precision = 22, scale = 0)
	public Double getAdjutNav() {
		return this.adjutNav;
	}

	public void setAdjutNav(Double adjutNav) {
		this.adjutNav = adjutNav;
	}

	@Column(name = "accum_NAV", precision = 22, scale = 0)
	public Double getAccumNav() {
		return this.accumNav;
	}

	public void setAccumNav(Double accumNav) {
		this.accumNav = accumNav;
	}

//	@Column(name = "pe", precision = 22, scale = 0)
//	public Double getPe() {
//		return this.pe;
//	}
//
//	public void setPe(Double pe) {
//		this.pe = pe;
//	}

	@Column(name = "peWeighted", precision = 22, scale = 0)
	public Double getPeWeighted() {
		return this.peWeighted;
	}

	public void setPeWeighted(Double peWeighted) {
		this.peWeighted = peWeighted;
	}

//	@Column(name = "pb", precision = 22, scale = 0)
//	public Double getPb() {
//		return this.pb;
//	}
//
//	public void setPb(Double pb) {
//		this.pb = pb;
//	}

	@Column(name = "pbWeighted", precision = 22, scale = 0)
	public Double getPbWeighted() {
		return this.pbWeighted;
	}

	public void setPbWeighted(Double pbWeighted) {
		this.pbWeighted = pbWeighted;
	}

//	@Column(name = "roe", precision = 22, scale = 0)
//	public Double getRoe() {
//		return this.roe;
//	}
//
//	public void setRoe(Double roe) {
//		this.roe = roe;
//	}

	@Column(name = "roeWeighted", precision = 22, scale = 0)
	public Double getRoeWeighted() {
		return this.roeWeighted;
	}

	public void setRoeWeighted(Double roeWeighted) {
		this.roeWeighted = roeWeighted;
	}

	@Column(name = "divi", precision = 22, scale = 0)
	public Double getDivi() {
		return this.divi;
	}

	public void setDivi(Double divi) {
		this.divi = divi;
	}

	@Column(name = "diviWeighted", precision = 22, scale = 0)
	public Double getDiviWeighted() {
		return this.diviWeighted;
	}

	public void setDiviWeighted(Double diviWeighted) {
		this.diviWeighted = diviWeighted;
	}

}